Method, apparatus, and system for providing specified communications service, and terminal

ABSTRACT

The present disclosure discloses a method, an apparatus, and a system for providing a specified communications service, and a terminal, and belongs to the field of network technologies. The method includes: sending a specified communications service request to a signaling access server, the specified communications service request carrying a third-party application identifier and a first user identity of a local end, and the signaling access server being configured to provide a specified communications access service; if verification on the third-party application identifier and the first user identity is successful, establishing a signaling path to the signaling access server, the signaling path being configured to provide a signaling transmission interface to the signaling access server; and performing specified communication based on the signaling path.

CROSS-REFERENCES TO RELATED APPLICATION

This application is a continuation application of PCT Patent ApplicationNo. PCT/CN2016/078664, filed on Apr. 7, 2016, which claims priority toclaims priority to Chinese Patent Application No. 201510258879.4, filedwith the Chinese Patent Office on May 20, 2015 and entitled “METHOD,APPARATUS, AND SYSTEM FOR PROVIDING SPECIFIED COMMUNICATIONS SERVICE,”the entire contents of both of which are incorporated herein byreference.

FIELD OF THE TECHNOLOGY

The present disclosure relates to the field of network technologies, andin particular, to a method, an apparatus, and a system for providing aspecified communications service, and a terminal.

BACKGROUND OF THE DISCLOSURE

The development of network technologies brings much convenience topeople's life. For example, in communication, an Internet-basedaudio/video communications method is provided, to implement moreconvenient and rapid communication.

There are two existing audio/video communications methods: (I) anaudio/video function is embedded in some social applications, to provideaudio/video communication to users; for example, in an instant messagingapplication, a user may implement a video call with a friend by tappinga video communications option; and (II) a communications softwaredevelopment kit (SDK) used for implementing audio/video communication isprovided; the communications SDK is implanted in an application client,and a corresponding SDK is implanted in a background server of anapplication; the communications SDK in the application client and theSDK in the background server implement audio/video communication byusing a private protocol.

In the implementation process of the present disclosure, the inventorfinds that the related technology has at least the following problems:during implementation of the audio/video communication, for method (I),a user can perform audio/video communication only by using a particularapplication installed on a terminal, and cannot open an audio/videoservice to a third party; for method (II), after the communications SDKis added to the application client, a developer further needs to implantthe corresponding communications SDK on a background server side, thatis, to transfer operational and maintenance costs to the applicationdeveloper, and this has a relatively high requirement on an accesscapability and a development and operation capability of the applicationdeveloper.

SUMMARY

To solve the problems in the related technology, embodiments of thepresent disclosure show a method, an apparatus, and a system forproviding a specified communications service, and a terminal. Thetechnical solutions are as follows:

According to one aspect, a method for providing a specifiedcommunications service is provided, including: sending a specifiedcommunications service request to a signaling access server, thespecified communications service request carrying a third-partyapplication identifier and a first user identity of a local end, and thesignaling access server being configured to provide a specifiedcommunications access service; establishing a signaling path to thesignaling access server by using a signaling SDK (Software DevelopmentKit) if verification on the third-party application identifier and thefirst user identity is successful, the signaling path being configuredto provide a signaling transmission interface to the signaling accessserver, the signaling SDK encapsulating an address of the signalingaccess server, a communications interface between a specifiedcommunications service SDK and a backend, and providing a conversioninterface between an external account and an internal account in acommunications system; and performing specified communication based onthe signaling path.

In a possible implementation manner, the performing specifiedcommunication based on the signaling path includes: sending anaudio/video room creation request to the signaling access server byusing the signaling path, and the signaling access server returns anaudio/video data service address allocated by an audio/video platform tothe local end of a first user corresponding to the first user identity;and performing audio/video communication with a second user based on theaudio/video data service address, where the second user is a userinvited by the first user to enter an audio/video room.

In a possible implementation manner, the performing audio/videocommunication with a second user based on the audio/video data serviceaddress includes: after the audio/video room is successfully created,sending a second user identity of the second user and an audio/videoroom identifier to the signaling access server by using the signalingpath, and the signaling access server sends an invitation message to thesecond user by using a message platform, and the second user enters theaudio/video room when accepting the invitation; and sending, by thelocal end, audio/video data to the audio/video data service address, andthe audio/video platform sends the audio/video data to the second userin the audio/video room.

In a possible implementation manner, the performing specifiedcommunication based on the signaling path further includes: sending amessage interaction request to the signaling access server by using thesignaling path, where the message interaction request carries messagecontent and a target user, and the signaling access server sends themessage content to the target user by using the message platform.

In a possible implementation manner, the performing specifiedcommunication based on the signaling path further includes: sending arich-media uploading request to the signaling access server by using thesignaling path, and the signaling access server returns a rich-mediadata service address and a rich-media file identifier that are allocatedby a rich-media platform to the first user; sending a rich-media file tothe rich-media data service address; and sending the rich-media fileidentifier to a target user, and the target user obtains the rich-mediadata service address based on the rich-media file identifier anddownloads the rich-media file from the rich-media data service address.

According to another aspect, a method for providing a specifiedcommunications service is provided, including: receiving a specifiedcommunications service request of a third-party application client, thespecified communications service request carrying a third-partyapplication identifier and a first user identity; performingverification on the third-party application identifier and the firstuser identity; establishing a signaling path to the third-partyapplication client if the verification on the third-party applicationidentifier and the first user identity is successful, the signaling pathbeing configured to provide a signaling transmission interface; andproviding a specified communications service to the third-partyapplication client based on the signaling path.

In a possible implementation manner, before the receiving a specifiedcommunications service request of a third-party application client, themethod further includes: performing registration on an applicationapplying for access; and issuing an application identifier andapplication check data to the application that is successfullyregistered, where the application identifier is used for uniquelyidentifying the application, and the application check data is used forchecking validity of the application.

In a possible implementation manner, the providing a specifiedcommunications service to the third-party application client based onthe signaling path includes: receiving an audio/video room creationrequest by using the signaling path; allocating an audio/video dataservice address to a first user corresponding to the first user identitywhen verification on the audio/video room creation request issuccessful; creating an audio/video room based on the audio/video dataservice address; and providing an audio/video communications service tothe first user based on the audio/video room.

In a possible implementation manner, after the providing an audio/videocommunications service to the first user based on the audio/video room,the method further includes: destroying the audio/video room if it isdetected that all users in the audio/video room have exited the room.

In a possible implementation manner, the providing a specifiedcommunications service to the third-party application client based onthe signaling path includes: receiving a message sending request of thefirst user by using the signaling path, where the message sendingrequest carries message content and a target user; and sending themessage content to the target user if an online instance of the targetuser is found; or buffering the message content if an online instance ofthe target user is not found, and not sending the message content to thetarget user until the target user registers the online instance.

In a possible implementation manner, the providing a specifiedcommunications service to the third-party application client based onthe signaling path further includes: receiving a rich-media uploadingrequest by using the signaling path; allocating a rich-media dataservice address and a rich-media file identifier to the first user whenverification on the rich-media uploading request is successful;receiving a rich-media file uploaded by the first user to the rich-mediadata service address; and sending the rich-media data service address toa second user according to a rich-media file identifier carried in adownloading request when receiving the downloading request sent by thesecond user, and the second user downloads the rich-media file.

According to another aspect, an apparatus for providing a specifiedcommunications service is provided, including: a sending module,configured to send a specified communications service request to asignaling access server, the specified communications service requestcarrying a third-party application identifier and a first user identityof a local end, and the signaling access server being configured toprovide a specified communications access service; a path establishmentmodule, configured to: establish a signaling path to the signalingaccess server if verification on the third-party application identifierand the first user identity is successful, the signaling path beingconfigured to provide a signaling transmission interface to thesignaling access server; and a communications module, configured toperform specified communication based on the signaling path.

In a possible implementation manner, the communications module isconfigured to: send an audio/video room creation request to thesignaling access server by using the signaling path, and the signalingaccess server returns an audio/video data service address allocated byan audio/video platform to the local end of a first user correspondingto the first user identity; and perform audio/video communication with asecond user based on the audio/video data service address, where thesecond user is a user invited by the first user to enter an audio/videoroom.

In a possible implementation manner, the communications module isconfigured to: send a second user identity of the second user and anaudio/video room identifier to the signaling access server by using thesignaling path after the audio/video room is successfully created, andthe signaling access server sends an invitation message to the seconduser by using a message platform, and the second user enters theaudio/video room when accepting the invitation; and send audio/videodata to the audio/video data service address, and the audio/videoplatform sends the audio/video data to the second user in theaudio/video room.

In a possible implementation manner, the communications module isfurther configured to send a message interaction request to thesignaling access server by using the signaling path, where the messageinteraction request carries message content and a target user, and thesignaling access server sends the message content to the target user byusing the message platform.

In a possible implementation manner, the communications module isfurther configured to: send a rich-media uploading request to thesignaling access server by using the signaling path, and the signalingaccess server returns a rich-media data service address and a rich-mediafile identifier that are allocated by a rich-media platform to the firstuser; send a rich-media file to the rich-media data service address; andsend the rich-media file identifier to a target user, and the targetuser obtains the rich-media data service address based on the rich-mediafile identifier and downloads the rich-media file from the rich-mediadata service address.

According to still another aspect, a system for providing a specifiedcommunications service is provided, including: a signaling accessserver, a data relationship link platform, a message platform, anaudio/video platform, and a rich-media platform, the signaling accessserver being configured to receive a specified communications servicerequest of a third-party application client, the specifiedcommunications service request carrying a third-party applicationidentifier and a first user identity; the data relationship linkplatform being configured to perform verification on the third-partyapplication identifier and the first user identity; the signaling accessserver establishing a signaling path to the third-party applicationclient if the verification performed by the data relationship linkplatform on the third-party application identifier and the first useridentity is successful, the signaling path being configured to provide asignaling transmission interface; and the signaling access server beingfurther configured to provide a specified communications service to thethird-party application client based on the signaling path and by usingat least one platform of the message platform, the audio/video platform,or the rich-media platform.

In a possible implementation manner, the data relationship link platformis further configured to: perform registration on an applicationapplying for access; and issue an application identifier and applicationcheck data to the application that is successfully registered, where theapplication identifier is used for uniquely identifying the application,and the application check data is used for checking validity of theapplication.

In a possible implementation manner, the signaling access server isconfigured to: receive an audio/video room creation request by using thesignaling path, and send the audio/video room creation request to thedata relationship link platform by using the message platform; and theaudio/video platform is configured to: allocate an audio/video dataservice address to a first user corresponding to the first user identitywhen verification performed by the data relationship link platform onthe audio/video room creation request is successful; create anaudio/video room based on the audio/video data service address; andprovide an audio/video communications service to the first user based onthe audio/video room.

In a possible implementation manner, the signaling access server isconfigured to receive, by using the signaling path, a message sendingrequest sent by the first user, where the message sending requestcarries message content and a target user, and the signaling accessserver is further configured to send the message sending request to themessage platform; and the message platform sends the message content tothe target user if the message platform finds an online instance of thetarget user; or the message platform buffers the message content if themessage platform does not find an online instance of the target user,and does not send the message content to the target user until thetarget user registers the online instance.

In a possible implementation manner, the signaling access server isconfigured to: receive a rich-media uploading request by using thesignaling path, and send the rich-media uploading request to the datarelationship link platform, and the rich-media platform allocates arich-media data service address and a rich-media file identifier to thefirst user when verification performed by the data relationship linkplatform on the rich-media uploading request is successful; and therich-media platform is configured to: receive a rich-media file uploadedby the first user to the rich-media data service address; and send therich-media data service address to a second user according to arich-media file identifier carried in a downloading request whenreceiving the downloading request sent by the second user, and thesecond user downloads the rich-media file.

In a possible implementation manner, the signaling access server isconfigured to destroy the signaling path if receiving a specifiedcommunications service ending request of the first user.

According to yet another aspect, a terminal is provided, including: areceiver, a transmitter, a processor separately connected to thereceiver and the transmitter, and a memory connected to the processor,the memory being configured to store an instruction executed by theprocessor, and the processor being configured to operate the instructionstored in the memory and execute the method for providing a specifiedcommunications service according to any one of the foregoing aspects.

By implementing the technical solutions shown in the embodiments of thepresent disclosure: a signaling path is established, based on a requestof a third-party application client, between a third-party applicationclient and a system that can provide a specified communications service,so as to provide, to a third-party application, a basis for accessingthe specified communications service, and provide a relativelyindependent specified communications service to an application that doesnot have a specified communications capability, thereby improving useflexibility of the application, and reducing operation costs anddevelopment costs needed when an application developer specifies acommunications service.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in embodiments of the presentinvention more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments.Apparently, the accompanying drawings in the following description showonly some embodiments of the present invention, and a person of ordinaryskill in the art may still derive other drawings from these accompanyingdrawings without creative efforts.

FIG. 1 is a flowchart of a method for providing a specifiedcommunications service according to an embodiment of the presentdisclosure;

FIG. 2 is a flowchart of a method for providing a specifiedcommunications service according to an embodiment of the presentdisclosure;

FIG. 3 is a schematic structural diagram of a system for providing aspecified communications service according to an embodiment of thepresent disclosure;

FIG. 4 is a flowchart of a method for providing a specifiedcommunications service according to an embodiment of the presentdisclosure;

FIG. 5 is a flowchart of a method for providing a specifiedcommunications service according to an embodiment of the presentdisclosure;

FIG. 6 is a schematic structural diagram of an apparatus for providing aspecified communications service according to an embodiment of thepresent disclosure;

FIG. 7 is a schematic structural diagram of a system for providing aspecified communications service according to an embodiment of thepresent disclosure;

FIG. 8 is a schematic structural diagram of a terminal according to anembodiment of the present disclosure; and

FIG. 9 is a schematic structural diagram of a server according to anembodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

To make objectives, technical solutions, and advantages of the presentdisclosure clearer, the following further describes implementationmanners of the present disclosure in detail with reference to theaccompanying drawings.

Open Authorization (OAUTH) refers to an Internet Protocol used forauthorization, and aims at providing a secure, open, and simple standardto authorization of a user resource. Authorization of the OAUTH does notmake a third party touch account information of a user (such as a username and a password), that is, the third party can apply forauthorization of the user resource without using the user name and thepassword of the user. Therefore, the OAUTH is relatively secure.

A software development kit (SDK) generally refers to a set ofdevelopment tools used by a software engineer for establishingapplication software for a specific software package, a specifiedsoftware framework, a specified hardware platform, a specified operatingsystem, and the like.

Push-to-Talk (PTT) originally refers to a service for rapidlyestablishing a call in the mobile communications field, that is, a callcan be made simply by pressing a key. However, in the Internet field,the PTT mainly refers to a voice intercom function in an offline manner,for example, voice intercom functions (e.g., walkie-talkie) provided bysome instant messaging applications or social applications.

Instant messaging (IM) refers to a message interaction function in asocial application. An IM user may send and receive a message, a datafile, and the like based on the message interaction function provided bythe social application. Certainly, the social application in embodimentsof the present disclosure may further have other functions, for example,personal status display and subscription. Details are not describedherein.

FIG. 1 is a flowchart of a method for providing a specifiedcommunications service according to an embodiment of the presentdisclosure. The method for providing a specified communications serviceshown in this embodiment is executed by a terminal. The terminal may bea mobile phone, a tablet computer, a desktop computer, or the like.Referring to FIG. 1, a procedure of the method includes:

101: Sending a specified communications service request to a signalingaccess server, the specified communications service request carrying athird-party application identifier and a first user identity of a localend, and the signaling access server being configured to provide aspecified communications access service.

102: Establishing a signaling path to the signaling access server ifverification on the third-party application identifier and the firstuser identity is successful, the signaling path being configured toprovide a signaling transmission interface to the signaling accessserver.

103: Performing specified communication based on the signaling path.

Optionally, the performing specified communication based on thesignaling path includes: sending an audio/video room creation request tothe signaling access server by using the signaling path, and thesignaling access server returns an audio/video data service addressallocated by an audio/video platform to a first user (e.g.,corresponding to the first user identity at the local end); andperforming audio/video communication with a second user based on theaudio/video data service address, where the second user is a userinvited by the first user to enter an audio/video room.

Optionally, the performing audio/video communication with a second userbased on the audio/video data service address includes: after theaudio/video room is successfully created, sending a second user identityof the second user and an audio/video room identifier to the signalingaccess server by using the signaling path, and the signaling accessserver sends an invitation message to the second user by using a messageplatform, and the second user enters the audio/video room when acceptingthe invitation; and sending, by the first user (e.g., the local end ofthe first user), audio/video data to the audio/video data serviceaddress, and the audio/video platform sends the audio/video data to thesecond user in the audio/video room.

Optionally, the performing specified communication based on thesignaling path further includes: sending a message interaction requestto the signaling access server by using the signaling path, where themessage interaction request carries message content and a target user,and the signaling access server sends the message content to the targetuser by using the message platform.

Optionally, the performing specified communication based on thesignaling path further includes: sending a rich-media uploading requestto the signaling access server by using the signaling path, and thesignaling access server returns a rich-media data service address and arich-media file identifier that are allocated by a rich-media platformto the first user; sending a rich-media file to the rich-media dataservice address; and sending the rich-media file identifier to a targetuser, and the target user obtains the rich-media data service addressbased on the rich-media file identifier and downloads the rich-mediafile from the rich-media data service address.

Any combination of all of the foregoing optional technical solutions mayform an optional embodiment of the present disclosure, and details arenot described one by one herein.

FIG. 2 is a flowchart of a method for providing a specifiedcommunications service according to an embodiment of the presentdisclosure. Referring to FIG. 2, a procedure of the method includes:

201: Receiving a specified communications service request of athird-party application client, the specified communications servicerequest carrying a third-party application identifier and a first useridentity.

202: Performing verification on the third-party application identifierand the first user identity.

203: Establishing a signaling path to the third-party application clientif the verification on the third-party application identifier and thefirst user identity is successful, the signaling path being configuredto provide a signaling transmission interface.

204: Providing a specified communications service to the third-partyapplication client based on the signaling path.

Optionally, before the receiving a specified communications servicerequest of a third-party application client, the method furtherincludes: performing registration on an application applying for access;and issuing an application identifier and application check data to theapplication that is successfully registered, where the applicationidentifier is used for uniquely identifying the application, and theapplication check data is used for checking validity of the application(e.g., the third-party application client corresponding to theapplication, and the application identifier being associated with thethird-party application identifier).

Optionally, the providing a specified communications service to thethird-party application client based on the signaling path includes:receiving an audio/video room creation request by using the signalingpath; allocating an audio/video data service address to a first usercorresponding to the first user identity when verification on theaudio/video room creation request is successful; creating an audio/videoroom based on the audio/video data service address; and providing anaudio/video communications service to the first user based on theaudio/video room.

Optionally, after the providing an audio/video communications service tothe first user based on the audio/video room, the method furtherincludes: destroying the audio/video room if it is detected that allusers in the audio/video room have exited the room.

Optionally, after the providing an audio/video communications service tothe first user based on the audio/video room, the method furtherincludes: destroying the signaling path if receiving a specifiedcommunications service ending request of the first user.

Optionally, the providing a specified communications service to thethird-party application client based on the signaling path furtherincludes: receiving a message sending request of the first user by usingthe signaling path, where the message sending request carries messagecontent and a target user; sending the message content to the targetuser if an online instance of the target user is found; or buffering themessage content if an online instance of the target user is not found,and not sending the message content to the target user until the targetuser registers the online instance.

Optionally, the providing a specified communications service to thethird-party application client based on the signaling path furtherincludes: receiving a rich-media uploading request by using thesignaling path; allocating a rich-media data service address and arich-media file identifier to the first user when verification on therich-media uploading request is successful; receiving a rich-media fileuploaded by the first user to the rich-media data service address; andsending the rich-media data service address to a second user accordingto a rich-media file identifier carried in a downloading request whenreceiving the downloading request sent by the second user, and thesecond user downloads the rich-media file.

Any combination of all of the foregoing optional technical solutions mayform an optional embodiment of the present disclosure, and details arenot described one by one herein.

In an actual scenario, a system for providing a specified communicationsservice may refer to a server cluster that includes multiple differentfunction platforms. Referring to FIG. 3, the system for providing aspecified communications service may include: an access platformconfigured to provide a signaling access service, a message platformconfigured to provide a message and status service, a rich-mediaplatform configured to provide a rich-media policy service, aninfrastructure platform configured to provide a rich-media data service,an audio/video platform configured to provide an audio/video policyservice and an audio/video data service, a data relationship linkplatform configured to provide an identity check service, and the like.A client performs data and signaling interaction with various differentservers on a server side by using a signaling path.

For ease of understanding, various platforms and interaction between theplatforms are introduced below:

(1) The access platform is configured to provide a signaling accessservice. Specific functions of the access platform include: extranetaccess scheduling, message/signaling distribution, data encryption, andthe like.

(2) The message platform is configured to provide a message and statusservice. Specific functions of the message platform include: providinguser example registration and online state management, message filteringand forwarding, protocol conversion, link encryption, authentication,user identity check and convergence, and the like, which are keyservices of a basic instant messaging capability.

(3) The rich-media platform is configured to provide a rich-media policyservice. Specific functions of the rich-media platform include providinga backend interface related to a rich-media policy, for example, aninterface for performing uploading in seconds (e.g., instant uploading)and an interface for obtaining an upload/download address.

(4) The infrastructure platform is configured to provide a rich-mediadata service. Specific functions of the infrastructure platform includeproviding data storage capabilities and interfaces for accessing relatedbackend, for example, data upload/download access, storage, andindexing.

(5) The audio/video platform is configured to provide an audio/videopolicy service and an audio/video data service. Specific functions ofthe audio/video platform include providing a backend interface relatedto an audio/video policy, for example, creating a room and querying roominformation, and further include a backend interface related toaudio/video data transition and flow control, and the like.

(6) The data relationship link platform is configured to provide anidentity check service. Specific functions of the data relationship linkplatform include conversion between an external account and an internalaccount of a communications system, identity check interfaces of variousaccounts, and the like.

Based on the system architecture in FIG. 3, FIG. 4 is a flowchart of amethod for providing a specified communications service according to anembodiment of the present disclosure. Referring to FIG. 4, thisembodiment specifically includes:

401: A third-party application client sends a specified communicationsservice request to a signaling access server, the specifiedcommunications service request carrying a third-party applicationidentifier and a first user identity of a local end, and the signalingaccess server being configured to provide a specified communicationsaccess service.

A first user may be a user of any third-party application client on aterminal. The application registers a specified communications servicein advance with a service provider of the signaling access server.Therefore, when the first user needs to use the specified communicationsservice on the third-party application client, the first user maytrigger the specified communications service request, and send thespecified communications service request to the signaling access server.The specified communications service may be an audio/video service, amessage service, a rich-media service, or the like. This is not limitedin this embodiment of the present disclosure. When the specifiedcommunications service request is sent, the specified communicationsservice request may carry an identifier of the specified communicationsservice. For example, when the specified communications service is anaudio/video service, the specified communications service request maycarry an identifier of the audio/video service. When the specifiedcommunications service request is a rich-media service, the specifiedcommunications service request may carry an identifier of the rich-mediaservice.

It should be noted that the developer of the application client mayregister the client in advance, and the application client can use thespecified communications service provided in this embodiment of thepresent disclosure.

Referring to FIG. 5, the registration process may include the followingsteps:

Step One: Performing Registration on an Application Applying for Access.

An application developer that needs to use the specified communicationsservice may register a developer account to a system for the specifiedcommunications service (that is, a service provider). The registrationprocess may be: sending, by the application developer, a registrationrequest to the signaling access server, and the signaling access serverreviews the application developer according to information such as anapplication identifier and a target access service that are carried inthe registration request. During implementation, the applicationdeveloper may perform payment at a stage of requesting registration.After determining that the payment is successful, the service providerperforms registration on the application of the application developer.Certainly, the payment process may be performed online or offline. Thisis not limited in this embodiment of the present disclosure.

It should be noted that in addition to the application identifier andthe target access service, the foregoing registration request mayfurther carry other basic information about the application, forexample, an application number and information that is needed inapplication access. These pieces of information may be provided by theapplication developer at an actual registration stage. This is notlimited in this embodiment of the present disclosure.

For an application developer, a developer account may be registered, sothat the application developer can input, based on the developeraccount, information related to the application, so that the applicationclient registered by the application developer uses the specifiedcommunications service provided by the system for providing a specifiedcommunications service.

Step two: Issuing an application identifier and application check datato the application that is successfully registered, where theapplication identifier is used for uniquely identifying the application,and the application check data is used for checking validity of theapplication.

When registration approval of an administrator of the service provideron the application is successful, the application identifier (Appid)used for uniquely identifying the application may be issued to theapplication that is successfully registered, and the application checkdata (Appkey) is issued to the application. The application check datamay be generated according to basic information about the application.The generation process may be performed by using a preset encryptionalgorithm. Details are not described herein. A terminal may obtain theapplication identifier and the application check data when installingthe application, so that the terminal may request the system forproviding a specified communications service for the specifiedcommunications service based on the application identifier and theapplication check data in a subsequent operation process of theapplication.

The foregoing registration may be based on the OAUTH Protocol providedin this embodiment, so that when an application user subsequently usesthe specified communications service provided by the system forproviding a specified communications service, authorization of the OAUTHdoes not make the signaling access server touch account information ofthe user (for example, a user name and a password), that is, the systemfor providing a specified communications service can apply forauthorization of the user resource without using the user name and thepassword of the user. Therefore, privacy is relatively good, andsecurity is relatively high.

402: The signaling access server sends the specified communicationsservice request to a data relationship link platform when receiving thespecified communications service request from the terminal of the firstuser (e.g., the local end that runs the third-party application).

403: The data relationship link platform performs verification on theapplication identifier and the first user identity, and returns averification result to the signaling access server.

The verification process may be viewed as a process of initializing asignaling path. In the verification process, the data relationship linkplatform performs verification according to the application identifierand the first user identity that are carried in the received specifiedcommunications service request, and may provide a specifiedcommunications service, such as an audio/video service, to the firstuser when the verification is successful.

404: The signaling access server establishes a signaling path to thethird-party application client if the verification on the applicationidentifier and the first user identity is successful, the signaling pathbeing configured to provide a signaling transmission interface.

The third-party application client may provide a specifiedcommunications service SDK, for example, an audio/video SDK. An addressof the signaling access server and a function interface that isnecessary for the specified communications service are encapsulated inthe SDK, so as to be used by a client service side. The signaling pathmay be established by a signaling SDK. The signaling SDK encapsulatesthe address of the signaling access server and a communicationsinterface between the specified communications service SDK and abackend, and provides a conversion interface between an external accountand an internal account in a communications system. The establishment ofthe signaling path may include multiple times of data interactionbetween the specified communications service SDK and the signaling SDK,and the signaling access server. Details are not described in thisembodiment of the present disclosure.

405: The signaling access server is further configured to provide aspecified communications service to the third-party application clientbased on the signaling path and by using at least one platform of amessage platform, an audio/video platform, or a rich-media platform.

The signaling access server may provide the specified communicationsservice to the third-party application client based on the signalingpath and multiple specified communications platforms. The specifiedcommunications service includes a message service, an audio/videoservice, a rich-media service, and the like.

406: A system for providing a specified communications service destroysthe signaling path if the signaling access server receives anaudio/video service ending request of a first user.

When a session ends, the signaling access server destroys the signalingpath, that is, destroys a backend online instance created for providingthe specified communications service.

When the signaling access server establishes the signaling path to aterminal, an online instance is created for the first user on thespecified communications service side. The specified communicationsservice is provided to the first user based on the online instance.Different specified communications service procedures such as theaudio/video service, the message service, and the rich-media service areused as examples, to describe each procedure in detail.

For the audio/video service, in a process of providing the audio/videocommunications service, interaction between the terminal and the systemfor providing a specified communications service may include thefollowing steps A1 to A4:

A1: A terminal sends an audio/video room creation request to thesignaling access server by using the signaling path.

When the first user wants to perform audio/video communication, thefirst user may perform an operation on the terminal, to trigger theaudio/video room creation request.

A2: The signaling access server sends the audio/video room creationrequest to the audio/video platform when receiving the audio/video roomcreation request, so that the audio/video platform allocates anaudio/video data service address to the first user.

A3: The audio/video platform creates an audio/video room based on theaudio/video data service address.

It should be noted that the audio/video platform may create theaudio/video room based on an audio/video policy service. For example,different rooms may be created for different users according todifferent user attributes such as user levels, different quantities ofpeople that can be accommodated in rooms, and different types ofsharable data in rooms. A quantity of people that can be accommodated ina room created by a user with a high user level may be greater than aquantity of people that can be accommodated in a room created by a userwith a low user level. Certainly, whether to make a distinctionspecifically according to the user attributes or how to make adistinction may be determined according to negotiation between theapplication and the system for providing a specified communicationsservice in a registration process. Details are not described in thisembodiment of the present disclosure.

A4: The audio/video platform provides an audio/video communicationsservice to the first user based on the audio/video room.

Specifically, after the audio/video room is successfully created, thefirst user may send a second user identity and an audio/video roomidentifier to the signaling access server by using the signaling path,so that the signaling access server sends an invitation message to asecond user by using a message platform, and the second user enters theaudio/video room when accepting the invitation. The first user sendsaudio/video data to the audio/video data service address, so that theaudio/video platform sends the audio/video data to the second user inthe audio/video room.

When successfully creating the audio/video room, the audio/videoplatform may send the audio/video room identifier to the first user, sothat the first user invites the second user to enter the audio/videoroom by using a service backend or the message platform. The first userand the second user that is invited by the first user may have asubsequent audio/video call by using the audio/video data serviceaddress. The audio/video platform forwards inter-user call data in realtime.

After receiving the invitation message from the initiator, the seconduser sends a request to the audio/video platform to enter theaudio/video room (that is, to participate in a current audio/videosession). After successfully entering the audio/video room, the seconduser obtains the audio/video data service address from the audio/videopolicy service provided by the audio/video platform. Then, the seconduser may enter the audio/video room and perform real-time audio/videocommunication with another user in the room.

The invited second user may be a user on a user relationship link of thefirst user, or may be a user that does not have any relationship withthe first user. The invitation may be performed by entering a useridentity, a user name, or a user group identifier, or even by entering aphone number. That is, when obtaining the second user, a terminal mayobtain the user identity, the user name, the user group identifier, orthe like entered by the first user on the terminal. For different typesof clients, when the second user is obtained, there may be differentobtained objects. For example, for a client of an instant messagingtype, the obtained object may be a user identity or the like. For aclient of an information sharing platform type, the obtained object maybe a user group identifier or the like.

Further, the first user may perform processing such as dissolution onthe created audio/video room. A user may exit or enter the audio/videoroom again according to a user's need. When detecting that all users inthe current audio/video room have exited the room, the audio/videoplatform destroys the audio/video room. Optionally, in the foregoingcase, the audio/video platform may send, by using a signaling accessplatform, a room dissolution notification to the first user and thesecond user that once entered the audio/video room, and performdestruction processing on the audio/video room after sending thenotification, so as to avoid excessive occupation of space of theaudio/video data service in the audio/video platform.

Certainly, after the audio/video room is destroyed, the online instancethat is created earlier may also be destroyed. The destruction of theonline instance may be performed after the audio/video room is destroyedand when no other request of the first user is received within presetduration. The preset duration may be appointed between a registeredapplication and the system for providing a specified communicationsservice. This is not limited in this embodiment of the presentdisclosure.

For transceiving of a message, in a process of providing the audio/videocommunications service, interaction between the terminal and the systemfor providing a specified communications service may include thefollowing steps B1 to B5:

B1: The first user sends a message sending request to the signalingaccess server, where the message sending request carries message contentand a target user.

The first user may send a message to another user. Certainly, an objectto which the message is sent by the first user may also be any userselected by the first user, and the user may be a user under a sameaccount mechanism as the first user, or may be a user to which thesystem for providing a specified communications service provides aservice.

B2: The signaling access server sends the message sending request to themessage platform.

B3: The message platform searches for an online instance of the targetuser according to the target user carried in the message sending requestof the first user.

B4: The message platform sends the message content to the target user ifthe online instance of the target user is found.

B5: The message platform buffers the message content if the onlineinstance of the target user is not found, and does not send the messagecontent to the target user until the target user registers the onlineinstance.

In the foregoing steps B2 to B5, for the message platform, if a serviceis provided also by the system for providing a specified communicationsservice to the target user, and an online instance is registered on themessage platform, the message content may be forwarded to the targetuser in real time. If the target user does not currently use a serviceprovided by the system for providing a specified communications service,for example, in offline state, the message content may be buffered, andthen the message is subsequently forwarded after the target userperforms registration. The process may also be performed based oncontact information used when the target user performs registration onthe message platform. For example, the target user sets an offlinemessage notification or a forwarding mechanism; or the message platformmay give a notification according to the specific mechanism that is setby the message platform and in a contact manner that corresponds to thecontact information. For example, if the target user sets an emailnotification, the message content or prompt information used forprompting the message content may be sent to an email box set by thetarget user.

For the rich-media service, in a process of providing a rich-mediaservice, interaction between the terminal and the system for providing aspecified communications service may include the following steps C1 toC5:

C1: A terminal sends a rich-media uploading request to the signalingaccess server by using the signaling path.

C2: The signaling access server sends the rich-media uploading requestto the data relationship link platform, so that the data relationshiplink platform performs verification on the data transmission request.

The rich-media uploading request may carry an application identifier anda first user identity, so that the data relationship link platformperforms verification on the rich-media uploading request, and providesthe rich-media service to the first user when the verification issuccessful.

C3: The rich-media platform allocates a rich-media data service addressand a rich-media file identifier to the first user when the verificationperformed by the data relationship link platform on the rich-mediauploading request is successful.

The rich-media data service address refers to an address of storagespace for storing rich-media data. The data transmission request mayfurther carry related information such as a data amount, so that therich-media platform allocates corresponding storage space to the data.To facilitate operations such as query on the stored data, therich-media platform further allocates a file identifier to therich-media data.

C4: The rich-media platform receives a rich-media file uploaded by thefirst user to the rich-media data service address.

C5: The rich-media platform sends the rich-media data service address toa second user according to a rich-media file identifier carried in adownloading request when receiving the downloading request sent by thesecond user, so that the second user downloads the rich-media file.

The first user may send the rich-media file identifier to the seconduser, so that the second user downloads the rich-media file from therich-media platform based on the rich-media file identifier. A specificdownload process may be that the second user sends the downloadingrequest carrying the rich-media file identifier to the rich-mediaplatform, and the rich-media platform may send the correspondingrich-media data service address to the second user according to therich-media file identifier, so that the second user downloads therich-media file from the rich-media data service address.

It should be noted that the message service, the audio/video service,and the multimedia data service that are described above may coexist ina service process. For example, when the system for providing aspecified communications service provides the audio/video service to thefirst user, the system for providing a specified communications servicemay provide at least one of the message service or the multimedia dataservice to the first user, so as to provide at least two specifiedcommunications services to the third-party application client by usingmultiple platforms in the entire system for providing a specifiedcommunications service, so that when using the audio/video service orthe multimedia data service, a user of a client may still performmessage interaction by using a message service such as a text, therebyimproving flexibility of the specified communications service.

A solution of an open audio/video instant messaging system is providedto resolve problems that currently, a research and developmentrequirement on the audio/video instant messaging field is relativelyhigh, operation maintenance costs are relatively high, and small ormedium application developers cannot independently provide services dueto a limited research and development capability and a limited operationcapability in spite of strong needs. This solution has the followingadvantages: high quality, low costs, flexible access, convenient use,and a wide product coverage range. By means of the technical solutionprovided in the present disclosure, the application developers may notneed be concerned about operation deployment of a backend service, andonly needs to focus on fields at which the application developers aregood at. The application developers may enjoy a high-quality real-timeaudio/video instant messaging communications service at extremely lowdevelopment costs and low operation costs, so as to produce competitiveapplications of their own more easily and occupy the market rapidly.

According to the method shown in this embodiment of the presentdisclosure, a signaling path is established, based on a request of athird-party application client, between the third-party applicationclient and a system that can provide a specified communications service,so as to provide, to a third-party application, a basis for accessingthe specified communications service, and provide a relativelyindependent specified communications service to an application that doesnot have a specified communications capability, thereby improving useflexibility of the application, and reducing operation costs anddevelopment costs needed when an application developer specifies acommunications service.

FIG. 6 is a schematic structural diagram of an apparatus for providing aspecified communications service according to an embodiment of thepresent disclosure. The apparatus is configured to execute the methodsthat are used for providing a specified communications service and thatare shown in the embodiments shown in FIG. 1 and FIG. 4. Referring toFIG. 6, the apparatus includes: a sending module 601, configured to senda specified communications service request to a signaling access server,the specified communications service request carrying a third-partyapplication identifier and a first user identity of a local end, and thesignaling access server being configured to provide a specifiedcommunications access service; a path establishment module 602,configured to: establish a signaling path to the signaling access serverif verification on the third-party application identifier and the firstuser identity is successful, the signaling path being configured toprovide a signaling transmission interface to the signaling accessserver; and a communications module 603, configured to perform specifiedcommunication based on the signaling path.

Optionally, the communications module 603 is configured to: send anaudio/video room creation request to the signaling access server byusing the signaling path, so that the signaling access server returns anaudio/video data service address allocated by an audio/video platform toa first user; and perform audio/video communication with a second userbased on the audio/video data service address, where the second user isa user invited by the first user to enter an audio/video room.

The communications module 603 is configured to: send a second useridentity and an audio/video room identifier to the signaling accessserver by using the signaling path after the audio/video room issuccessfully created, so that the signaling access server sends aninvitation message to the second user by using a message platform, andthe second user enters the audio/video room when accepting theinvitation; and send audio/video data to the audio/video data serviceaddress, so that the audio/video platform sends the audio/video data tothe second user in the audio/video room.

Optionally, the communications module 603 is further configured to senda message interaction request to the signaling access server by usingthe signaling path, where the message interaction request carriesmessage content and a target user, so that the signaling access serversends the message content to the target user by using the messageplatform.

Optionally, the communications module 603 is further configured to: senda rich-media uploading request to the signaling access server by usingthe signaling path, so that the signaling access server returns arich-media data service address and a rich-media file identifier thatare allocated by a rich-media platform to the first user; send arich-media file to the rich-media data service address; and send therich-media file identifier to a target user, so that the target userobtains the rich-media data service address based on the rich-media fileidentifier and downloads the rich-media file from the rich-media dataservice address.

Any combination of all of the foregoing optional technical solutions mayform an optional embodiment of the present disclosure, and details arenot described one by one herein.

According to the apparatus shown in this embodiment of the presentdisclosure, a signaling path is established, based on a request of athird-party application client, between the third-party applicationclient and a system that can provide a specified communications service,so as to provide, to a third-party application, a basis for accessingthe specified communications service, and provide a relativelyindependent specified communications service to an application that doesnot have a specified communications capability, thereby improving useflexibility of the application, and reducing operation costs anddevelopment costs needed when an application developer specifies acommunications service.

It should be noted that when the apparatus for providing a specifiedcommunications service in the foregoing embodiment provides a specifiedcommunications service, an example of division of the foregoingfunctional modules is given for description. In actual application, theforegoing functions may be allocated to and completed by differentfunctional modules according to needs, that is, an inner structure of adevice is divided into different functional modules, to complete all orsome of the functions described above. In addition, embodiments of theapparatus for providing a specified communications service and themethod for providing a specified communications service belong to oneconcept. For a specific implementation process, refer to the methodembodiment, and details are not described herein again.

FIG. 7 is a schematic structural diagram of a system for providing aspecified communications service according to an embodiment of thepresent disclosure. Servers or platforms in the system may be configuredto execute the methods that are used for providing a specifiedcommunications service and that are shown in the embodiments shown inFIG. 2 and FIG. 3. Referring to FIG. 7, the system includes: a signalingaccess server 701, a data relationship link platform 702, a messageplatform 703, an audio/video platform 704, and a rich-media platform705.

The signaling access server is configured to receive a specifiedcommunications service request of a third-party application client, andthe specified communications service request carries a third-partyapplication identifier and a first user identity.

The data relationship link platform is configured to performverification on the third-party application identifier and the firstuser identity.

The signaling access server establishes a signaling path to thethird-party application client if the verification performed by the datarelationship link platform on the third-party application identifier andthe first user identity is successful, where the signaling path isconfigured to provide a signaling transmission interface.

The signaling access server is further configured to provide a specifiedcommunications service to the third-party application client based onthe signaling path and by using at least one platform of the messageplatform, the audio/video platform, or the rich-media platform.

Optionally, the data relationship link platform is further configuredto: perform registration for an application applying for access; andissue an application identifier and application check data to theapplication that is successfully registered, where the applicationidentifier is used for uniquely identifying the application, and theapplication check data is used for checking validity of the application.

Optionally, the signaling access server is configured to: receive anaudio/video room creation request by using the signaling path, and sendthe audio/video room creation request to the data relationship linkplatform by using the message platform.

The audio/video platform is configured to: allocate an audio/video dataservice address to a first user when verification performed by the datarelationship link platform on the audio/video room creation request issuccessful; create an audio/video room based on the audio/video dataservice address; and provide an audio/video communications service tothe first user and a second user based on the audio/video room, wherethe second user is a user invited by the first user to enter anaudio/video room.

Optionally, the audio/video platform is configured to destroy theaudio/video room if it is detected that all users in the audio/videoroom have exited the room.

Optionally, the signaling access server is configured to destroy thesignaling path if receiving a specified communications service endingrequest of the first user.

Optionally, the signaling access server is configured to receive, byusing the signaling path, a message sending request sent by the firstuser, where the message sending request carries message content and atarget user, and the signaling access server is further configured tosend the message sending request to the message platform; and themessage platform sends the message content to the target user if themessage platform finds an online instance of the target user; or themessage platform buffers the message content if the message platformdoes not find an online instance of the target user, and does not sendthe message content to the target user until the target user registersthe online instance.

Optionally, the signaling access server is configured to: receive arich-media uploading request by using the signaling path, and send therich-media uploading request to the data relationship link platform; andwhen verification performed by the data relationship link platform onthe rich-media uploading request is successful, the rich-media platformallocates a rich-media data service address and a rich-media fileidentifier to the first user; and the rich-media platform is configuredto: receive a rich-media file uploaded by the first user to therich-media data service address; and send the rich-media data serviceaddress to a second user according to a rich-media file identifiercarried in a downloading request when receiving the downloading requestsent by the second user, so that the second user downloads therich-media file.

Any combination of all of the foregoing optional technical solutions mayform an optional embodiment of the present disclosure, and details arenot described one by one herein.

Referring to FIG. 8, FIG. 8 is a schematic structural diagram of aterminal involved in an embodiment of the present disclosure. Theterminal may be configured to implement the method for providing aspecified communications service in the foregoing embodiment.

Specifically, the terminal 800 may include components such as a radiofrequency (RF) circuit 110, a memory 120 including one or more computerreadable storage media, an input unit 130, a display unit 140, a sensor150, an audio circuit 160, a wireless fidelity (WiFi) module 170, aprocessor 180 including one or more processing cores, and a power source190. A person skilled in the art may understand that a terminalstructure shown in FIG. 8 constitutes no limitation to the terminal, andthe terminal may include more or fewer components than those shown inthe figure, or some components may be combined, or a different componentdeployment may be used.

The RF circuit 110 may be configured to: receive and send signals duringan information receiving and sending process or a call process,particularly, after receiving downlink information of a base station,deliver the downlink information of the base station to one or moreprocessors 180 for processing, and in addition, send related uplink datato the base station. Generally, the RF circuit 110 includes, but is notlimited to, an antenna, at least one amplifier, a tuner, one or moreoscillators, a subscriber identity module (SIM) card, a transceiver, acoupler, a low noise amplifier (LNA), a duplexer, and the like. Inaddition, the RF circuit 110 may communicate with a network and anotherdevice by means of wireless communication. The wireless communicationmay use any communications standard or protocol, including but notlimited to: Global System for Mobile communications (GSM), GeneralPacket Radio Service (GPRS), Code Division Multiple Access (CDMA),Wideband Code Division Multiple Access (WCDMA), Long Term Evolution(LTE), email, Short Messaging Service (SMS), and the like.

The memory 120 may be configured to store a software program and amodule. The processor 180 runs the software program and module stored inthe memory 120, to implement various functional applications and dataprocessing. The memory 120 may mainly include a program storage area anda data storage area, where the program storage area may store anoperating system, an application required by at least one function (suchas a sound play function and an image display function), and the like;and the program storage area may store data (such as audio frequencydata and an address book) created according to the use of the terminal800, and the like. In addition, the memory 120 may include a high-speedrandom access memory, and may also include a non-volatile memory such asat least one disk storage device, a flash memory device, or anothervolatile solid-state storage device. Correspondingly, the memory 120 mayfurther include a memory controller, to provide access of the processor180 and the input unit 130 to the memory 120.

The input unit 130 may be configured to: receive input digit orcharacter information, and generate a keyboard, mouse, joystick,optical, or track ball signal input related to the user setting andfunction control. Specifically, the input unit 130 may include atouch-sensitive surface 131 and another input device 132. Thetouch-sensitive surface 131, which is also referred to as a touchscreenor a touch panel, may collect a touch operation of a user on or near thetouch-sensitive surface (such as an operation of a user on or near thetouch-sensitive surface 131 by using any suitable object or accessory,such as a finger or a stylus), and drive a corresponding connectionapparatus according to a preset program. Optionally, the touch-sensitivesurface 131 may include two parts: a touch detection apparatus and atouch controller. The touch detection apparatus detects a touch locationof the user, detects a signal generated by the touch operation, andtransfers the signal to the touch controller. The touch controllerreceives touch information from the touch detection apparatus, convertsthe touch information into touch point coordinates, and then sends thetouch point coordinates to the processor 180. Moreover, the touchcontroller can receive and execute a command sent from the processor180. In addition, the touch-sensitive surface 131 may be a resistive,capacitive, infrared, or surface sound wave type touch-sensitivesurface. In addition to the touch-sensitive surface 131, the input unit130 may further include the another input device 132. Specifically, theanother input device 132 may include, but is not limited to, one or moreof a physical keyboard, a functional key (such as a volume control keyor a switch key), a track ball, a mouse, or a joystick.

The display unit 140 may be configured to display information entered bythe user or information provided to the user, and various graphical userinterfaces of the terminal 800. These graphical user interfaces may beformed by a graph, a text, an icon, a video, or any combination thereof.The display unit 140 may include a display panel 141. Optionally, thedisplay panel 141 may be configured by using a liquid crystal display(LCD), an organic light-emitting diode (OLED), or the like. Further, thetouch-sensitive surface 131 may cover the display panel 141. Afterdetecting a touch operation on or near the touch-sensitive surface 131,the touch-sensitive surface 131 transfers the touch operation to theprocessor 180, so as to determine the type of the touch event. Then, theprocessor 180 provides a corresponding visual output on the displaypanel 141 according to the type of the touch event. Although in FIG. 8,the touch-sensitive surface 131 and the display panel 141 are used astwo separate parts to implement input and output functions, in someembodiments, the touch-sensitive surface 131 and the display panel 141may be integrated to implement the input and output functions.

The terminal 800 may further include at least one sensor 150, forexample, an optical sensor, a motion sensor, and other sensors.Specifically, the optical sensor may include an ambient light sensor anda proximity sensor, where the ambient light sensor may adjust brightnessof the display panel 141 according to luminance of the ambient light.The proximity sensor may switch off the display panel 141 and/orbacklight when the terminal 800 is moved to the ear. As one type ofmotion sensors, a gravity acceleration sensor may detect magnitude ofaccelerations in various directions (generally on three axes), maydetect magnitude and a direction of the gravity in static state, and maybe configured to identify an application of a mobile phone gesture (suchas switchover between horizontal and vertical screens, a related game,and gesture calibration of a magnetometer), a function related tovibration recognition (such as a pedometer and a knock), and the like.Other sensors, such as a gyroscope, a barometer, a hygrometer, athermometer, and an infrared sensor, which may be configured in theterminal 800 are not further described herein.

The audio circuit 160, a speaker 161, and a microphone 162 may providean audio interface between the user and the terminal 800. The audiocircuit 160 may convert received audio data into an electric signal andtransmit the electric signal to the speaker 161. The speaker 161converts the electric signal into a sound signal for output. On theother hand, the microphone 162 converts a collected sound signal into anelectric signal. The audio circuit 160 receives the electric signal andconverts the electric signal into audio data, and outputs the audio datato the processor 180 for processing. Then, the processor 180 sends theaudio data to, for example, another terminal by using the RF circuit110, or outputs the audio data to the memory 120 for further processing.The audio circuit 160 may further include an earplug jack, so as toprovide communication between a peripheral earphone and the terminal800.

WiFi is a short distance wireless transmission technology. The terminal800 may help, by using the WiFi module 170, the user to receive and sendemails, browse a webpage, access streaming media, and so on. The WiFimodule provides wireless broadband Internet access for the user.Although FIG. 8 shows the WiFi module 170, it may be understood that theWiFi module 170 is not a necessary component of the terminal 800. Whenrequired, the WiFi module may be omitted as long as the essence of thepresent disclosure is not changed.

The processor 180 is a control center of the terminal 800, and isconnected to various parts of the entire mobile phone by using variousinterfaces and lines. By running or executing the software programand/or module stored in the memory 120, and invoking data stored in thememory 120, the processor 180 executes various functions of the terminal800 and processes data, thereby performing overall monitoring on themobile phone. Optionally, the processor 180 may include one or moreprocessing cores. Preferably, the processor 180 may integrate anapplication processor and a modem processor. The application processormainly processes an operating system, a user interface, an application,and the like. The modem processor mainly processes wirelesscommunication. It may be understood that the foregoing modem processormay not be integrated into the processor 180.

The terminal 800 further includes the power source 190 (for example, abattery) that supplies power to various components. Preferably, thepower source may be logically connected to the processor 180 by using apower management system, so as to implement functions such as charging,discharging, and power consumption management by using the powermanagement system. The power source 190 may further include one or moreof a direct current or alternate current power source, a re-chargingsystem, a power source fault detection circuit, a power source converteror an inverter, a power source state indicator, or any other components.

Although not shown in the figure, the terminal 800 may further include acamera, a Bluetooth module, and the like, and details are not describedherein. Specifically, in this embodiment, the display unit of theterminal is a touchscreen display, and the terminal further includes amemory and one or more programs. The one or more programs are stored inthe memory and configured to be executed by one or more processors. Theone or more programs include an instruction used for performing theoperations performed by the client in FIG. 1 or FIG. 4.

FIG. 9 shows a server according to an example of an embodiment.Referring to FIG. 9, the server 900 includes a processing component 922,which further includes one or more processors and a memory resourcerepresented by a memory 932, which is configured to store an instructionthat can be executed by the processing component 922, for example, anapplication. The application stored in the memory 932 may include one ormore modules, where each module corresponds to a group of instructions.In addition, the processing component 922 is configured to execute aninstruction, so as to execute steps executed by the server in any one ofthe foregoing embodiments shown in FIG. 2 and FIG. 3.

The server 900 may further include: a power source component 926, whichis configured to execute power management of the server 900, a wired orwireless network interface 950, which is configured to connect theserver 900 to a network, and an input/output (I/O) interface 958. Theserver 900 may operate an operating system stored in the memory 932, forexample, Windows Server™, Mac OS X™, Unix™, Linux™, or FreeBSD™.

One or more programs are stored in the memory, and are configured to beexecuted by one or more processors. The one or more programs includeinstructions used for performing the operations performed by the serverin any one of the foregoing embodiments shown in FIG. 2 to FIG. 4.

In some existing technologies, audio/video functionalities are embeddedin a closed system (such as SMA apps, or video call apps). Suchfunctions are not open to third-party applications. In some existingtechnologies, audio/video client/server SDK providers require to implantclient SDK into user's app and implement Server SDK to backend server.While SDK providers are relieved from operating burden, this approachactually passes operation and maintenance costs on to the applicationdevelopers, so the final audio and video call service quality dependslargely on the application developers own access coverage anddevelopment of operational capacity. These are precisely lacked for mostsmall and medium-sized application developers, which makes such approachdifficult to implement. In addition, the simple audio and video SDKapproach cannot meet the needs of application developers for the basicinstant messaging capabilities, even if the SDK allows users to fill theform of plug-in instant messaging capabilities, but small and mediumdevelopers do not have enough development and operation capacity toimplement the plug-in. Further, considering the profit model,Client/Server SDK providers generally charges a costly fee by the numberof servers, passing the operating pressure to the access side, so thatthe access side (especially small and medium-sized applicationdevelopers) bears double weight of capital and operation, making theaccess costs very high.

By implementing the disclosed method and system, application developersdo not need to worry about operational deployment of the back-endservice, and can just focus on specific target areas, and enjoy highquality real-time audio and video instant messaging services with thelow development cost and the low operating cost, which is easier toquickly create their own boutique applications, and facilitates rapidoccupation of the market.

A person of ordinary skill in the art may understand that all or some ofthe steps of the embodiments may be implemented by using hardware, ormay be implemented by using a program to instruct related hardware. Theprogram may be stored in a computer readable storage medium. The storagemedium mentioned above may be a read-only memory, a magnetic disk, or anoptical disc.

The foregoing descriptions are merely examples of the embodiments of thepresent invention, but are not intended to limit the present disclosure.Any modification, equivalent replacement, and improvement made withoutdeparting from the spirit and principle of the present disclosure shallfall within the protection scope of the present disclosure.

What is claimed is:
 1. A method for providing a specified communicationsservice, comprising: sending a specified communications service requestto a signaling access server, the specified communications servicerequest carrying a third-party application identifier and a first useridentity of a local end, and the signaling access server beingconfigured to provide a specified communications access service;establishing a signaling path to the signaling access server by using asignaling SDK (Software Development Kit) if verification on thethird-party application identifier and the first user identity issuccessful, the signaling path being configured to provide a signalingtransmission interface to the signaling access server, the signaling SDKencapsulating an address of the signaling access server, acommunications interface between a specified communications service SDKand a backend, and providing a conversion interface between an externalaccount and an internal account in a communications system; andperforming specified communication based on the signaling path.
 2. Themethod according to claim 1, wherein the performing specifiedcommunication based on the signaling path comprises: sending anaudio/video room creation request to the signaling access server byusing the signaling path, wherein the signaling access server returns anaudio/video data service address allocated by an audio/video platform tothe local end of a first user corresponding to the first user identity;and performing audio/video communication with a second user based on theaudio/video data service address, wherein the second user is a userinvited by the first user to enter an audio/video room.
 3. The methodaccording to claim 2, wherein the performing audio/video communicationwith a second user based on the audio/video data service addresscomprises: after the audio/video room is successfully created, sending asecond user identity of the second user and an audio/video roomidentifier to the signaling access server by using the signaling path,wherein the signaling access server sends an invitation message to thesecond user by using a message platform, and the second user enters theaudio/video room when accepting the invitation; and sending, by thelocal end, audio/video data to the audio/video data service address,wherein the audio/video platform sends the audio/video data to thesecond user in the audio/video room.
 4. The method according to claim 1,wherein the performing specified communication based on the signalingpath further comprises: sending a rich-media uploading request to thesignaling access server by using the signaling path, wherein thesignaling access server returns a rich-media data service address and arich-media file identifier that are allocated by a rich-media platformto the first user; sending a rich-media file to the rich-media dataservice address; and sending the rich-media file identifier to a targetuser, wherein the target user obtains the rich-media data serviceaddress based on the rich-media file identifier and downloads therich-media file from the rich-media data service address.
 5. A methodfor providing a specified communications service, comprising: receivinga specified communications service request of a third-party applicationclient, the specified communications service request carrying athird-party application identifier and a first user identity; performingverification on the third-party application identifier and the firstuser identity; establishing a signaling path to the third-partyapplication client if the verification on the third-party applicationidentifier and the first user identity is successful, the signaling pathbeing configured to provide a signaling transmission interface; andproviding a specified communications service to the third-partyapplication client based on the signaling path.
 6. The method accordingto claim 5, wherein before the receiving a specified communicationsservice request of a third-party application client, the method furthercomprises: performing registration on an application applying foraccess; and issuing an application identifier and application check datato the application that is successfully registered, wherein theapplication identifier is used for uniquely identifying the application,and the application check data is used for checking validity of theapplication, the application identifier being associated with thethird-party application identifier.
 7. The method according to claim 5,wherein the providing a specified communications service to thethird-party application client based on the signaling path comprises:receiving an audio/video room creation request by using the signalingpath; allocating an audio/video data service address to a first usercorresponding to the first user identity when verification on theaudio/video room creation request is successful; creating an audio/videoroom based on the audio/video data service address; and providing anaudio/video communications service to the first user based on theaudio/video room.
 8. The method according to claim 5, wherein theproviding a specified communications service to the third-partyapplication client based on the signaling path further comprises:receiving a rich-media uploading request by using the signaling path;allocating a rich-media data service address and a rich-media fileidentifier to the first user when verification on the rich-mediauploading request is successful; receiving a rich-media file uploaded bythe first user to the rich-media data service address; and sending therich-media data service address to a second user according to arich-media file identifier carried in a downloading request whenreceiving the downloading request sent by the second user, wherein thesecond user downloads the rich-media file.
 9. An apparatus for providinga specified communications service, comprising a memory storing multipleprogram modules, and at least one processor coupled to the memory, theat least one processor being configured to execute: a sending module,configured to send a specified communications service request to asignaling access server, the specified communications service requestcarrying a third-party application identifier and a first user identityof a local end, and the signaling access server being configured toprovide a specified communications access service; a path establishmentmodule, configured to: establish a signaling path to the signalingaccess server if verification on the third-party application identifierand the first user identity is successful, the signaling path beingconfigured to provide a signaling transmission interface to thesignaling access server; and a communications module, configured toperform specified communication based on the signaling path.
 10. Theapparatus according to claim 9, wherein the communications module isconfigured to: send an audio/video room creation request to thesignaling access server by using the signaling path, wherein thesignaling access server returns an audio/video data service addressallocated by an audio/video platform to the local end of a first usercorresponding to the first user identity; and perform audio/videocommunication with a second user based on the audio/video data serviceaddress, wherein the second user is a user invited by the first user toenter an audio/video room.
 11. The apparatus according to claim 10,wherein the communications module is configured to: send a second useridentity of the second user and an audio/video room identifier to thesignaling access server by using the signaling path after theaudio/video room is successfully created, wherein the signaling accessserver sends an invitation message to the second user by using a messageplatform, and the second user enters the audio/video room when acceptingthe invitation; and send audio/video data to the audio/video dataservice address, wherein the audio/video platform sends the audio/videodata to the second user in the audio/video room.
 12. The apparatusaccording to claim 9, wherein the communications module is furtherconfigured to: send a rich-media uploading request to the signalingaccess server by using the signaling path, wherein the signaling accessserver returns a rich-media data service address and a rich-media fileidentifier that are allocated by a rich-media platform to the firstuser; send a rich-media file to the rich-media data service address; andsend the rich-media file identifier to a target user, wherein the targetuser obtains the rich-media data service address based on the rich-mediafile identifier and downloads the rich-media file from the rich-mediadata service address.
 13. A system for providing a specifiedcommunications service, comprising a signaling access server, a datarelationship link platform, a message platform, an audio/video platform,and a rich-media platform, the signaling access server being configuredto receive a specified communications service request of a third-partyapplication client, the specified communications service requestcarrying a third-party application identifier and a first user identity;the data relationship link platform being configured to performverification on the third-party application identifier and the firstuser identity; the signaling access server being configured to establisha signaling path to the third-party application client if theverification performed by the data relationship link platform on thethird-party application identifier and the first user identity issuccessful, the signaling path being configured to provide a signalingtransmission interface; and the signaling access server being furtherconfigured to provide a specified communications service to thethird-party application client based on the signaling path and by usingat least one platform of the message platform, the audio/video platform,or the rich-media platform.
 14. The system according to claim 13,wherein the data relationship link platform is further configured to:perform registration on an application applying for access; and issue anapplication identifier and application check data to the applicationthat is successfully registered, wherein the application identifier isused for uniquely identifying the application, and the application checkdata is used for checking validity of the application, the applicationidentifier being associated with the third-party application identifier.15. The system according to claim 13, wherein the signaling accessserver is configured to: receive an audio/video room creation request byusing the signaling path, and send the audio/video room creation requestto the data relationship link platform by using the message platform;and the audio/video platform is configured to: allocate an audio/videodata service address to a first user corresponding to the first useridentity when verification performed by the data relationship linkplatform on the audio/video room creation request is successful; createan audio/video room based on the audio/video data service address; andprovide an audio/video communications service to the first user based onthe audio/video room.
 16. The system according to claim 13, wherein thesignaling access server is configured to receive, by using the signalingpath, a message sending request sent by the first user, wherein themessage sending request carries message content and a target user, andthe signaling access server is further configured to send the messagesending request to the message platform; and the message platform sendsthe message content to the target user if the message platform finds anonline instance of the target user; or the message platform buffers themessage content if the message platform does not find an online instanceof the target user, and does not send the message content to the targetuser until the target user registers the online instance.
 17. The systemaccording to claim 13, wherein the signaling access server is configuredto: receive a rich-media uploading request by using the signaling path,and send the rich-media uploading request to the data relationship linkplatform, and the rich-media platform allocates a rich-media dataservice address and a rich-media file identifier to the first user whenverification performed by the data relationship link platform on therich-media uploading request is successful; and the rich-media platformis configured to: receive a rich-media file uploaded by the first userto the rich-media data service address; and send the rich-media dataservice address to a second user according to a rich-media fileidentifier carried in a downloading request when receiving thedownloading request sent by the second user, wherein the second userdownloads the rich-media file.
 18. The system according to claim 13,wherein the signaling access server is configured to destroy thesignaling path if receiving a specified communications service endingrequest of the first user.